package hello;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class AfterHello implements AfterReturningAdvice {

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println( target.getClass().getName()
               + method.getName() +returnValue);
    }
}